package com.sy.service.inventory;

import com.sy.bean.inventory.Damage;
import com.sy.bean.inventory.DamageDetail;
import com.sy.common.crud.IService;
import com.sy.mapper.inventory.DamageMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DamageService extends IService<Damage> {

    /**
     * 根据id审核报损单
     * @param reviewers
     * @param id
     * @param type
     * @return
     */
    int examineById(@Param("reviewers") String reviewers, @Param("id") int id, @Param("type") int type);


    /**
     * 根据报损单id查询报损单明细
     * @param id
     * @return
     */
    Damage queryById(int id);


    /**
     * 新增报损单
     * @param damage
     * @return
     */
    int insertDamage(Damage damage);


}
